<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        body,
        input,
        ul {
            padding: 0;
            margin: 0;
        }

        ul,
        li {
            list-style-type: none;
        }

        #todoApp {
            width: 400px;
            margin: 0 auto;
            margin-top: 50px;
        }

        /* 输入框区域 */
        #inputDiv {
            width: 400px;
            height: 60px;
            border: 1px solid rgb(214, 214, 214);
            border-radius: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 3px 3px 13px rgb(179 178 178);
        }

        #inputDiv>input {
            width: 250px;
            height: 30px;
            border: none;
            outline: none;
            padding-left: 10px;
            box-sizing: border-box;
            margin-left: 5px;
        }

        #inputDiv button {
            width: 50px;
            height: 30px;
            margin-right: 20px;
            border: none;
            background-color: rgb(255, 255, 255);
            border-radius: 15px;
            transition: box-shadow 0.3s;
        }

        #inputDiv button:hover {
            box-shadow: 3px 3px 13px rgb(179 178 178);
        }

        /* 待办事项区域 */
        #todos {
            width: 400px;
            border: 1px solid rgb(199, 199, 199);
            border-radius: 25px;
            margin-top: 10px;
            box-shadow: 3px 3px 13px rgb(179 178 178);
        }

        #todos>ul {
            padding: 20px 0 20px 20px;
        }

        #todos>ul li {
            position: relative;
            width: 370px;
            height: 30px;
            line-height: 30px;
            margin-bottom: 10px;
            padding: 10px 0 10px 0;
            border-radius: 15px;
            box-shadow: 3px 3px 11px rgb(179 178 178);
            font-size: 14px;
        }

        #todos>ul li>input {
            margin: 0 10px 0 10px;
        }

        /* 删除按钮样式 */
        .todoDelete {
            position: absolute;
            right: 12px;
            width: 50px;
            height: 30px;
            border-radius: 15px;
            border: none;
            background-color: #fff;
            transition: box-shadow 0.3s;

        }

        .todoDelete:hover {
            box-shadow: 3px 3px 13px rgb(179 178 178);
        }

        /* 勾选li之后的样式 */
        .todoDone {
            background-color: rgb(255, 162, 201);
        }
    </style>
</head>
<div id="todoApp">
    <div id="inputDiv">
        <input type="text" placeholder="请输入待办事项" id="todosInput" value="">
        <button id="todosAddBtn">确定</button>
    </div>
    <div id="todos">
        <ul id="todosLists">
        </ul>
    </div>
</div>

<body>
</body>
<script src="./todo.js"></script>

</html>